From a8bdd044ad6b37a9fb6890aeb7a05848d76a12dc Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Wed, 14 Jul 2004 06:23:10 +0000 Subject: [PATCH] all wikimedia servers return fully qualified domain name in `hostname` there's no need of linux-specific -a flag. warnings-- --- maintenance/commandLine.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index dc895f129c..aae1c7a6ae 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -61,7 +61,7 @@ $wgCommandLineMode = true; @ob_end_flush(); $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":"; -if ( $sep == ":" && strpos( `hostname -a`, "wikimedia.org" ) !== false ) { +if ( $sep == ":" && strpos( `hostname`, "wikimedia.org" ) !== false ) { $wgWikiFarm = true; if ( isset( $args[0] ) ) { $lang = array_shift( $args ); -- 2.20.1